<template>
	<div>
		<el-row class="bg">
			<el-col :span="24">
				<el-form :inline="true" :model="dataForm" ref="dataForm" @keyup.enter.native="init()">
					<el-form-item label="门控单元编号：">
						<el-select v-model="dataForm.DCU" filterable multiple collapse-tags clearable
						placeholder="请选择DCU编号" @change="getdoorChange" @clear="cleardoorChange">
							<el-checkbox v-model="checkOptions.checkAll" :style="{ padding: '5px 20px' }"
									:indeterminate="checkOptions.isIndeterminate" @change="handleCheckAllChange">
									全选
							</el-checkbox>
							<el-option v-for="item in DCUoptions" :key="item.dcu" :label="item.dcu" :value="item.dcu">
							</el-option>
						</el-select>
					</el-form-item>
					<el-form-item class="baseInfoBtnRight">
						<el-button type="primary" @click="readDCUNew" :disabled="buttonDisabled">读取
						</el-button>
					</el-form-item>
					<el-form-item class="baseInfoBtnRight">
						<el-button type="warning" @click="whiteDCUNew" :disabled="!isFormComplete">写入</el-button>
					</el-form-item>
					<el-form-item class="baseInfoBtnRight">
						<el-button type="danger" @click="resetDCUNew" :disabled="buttonDisabled">参数重置
						</el-button>
					</el-form-item>
				</el-form>
			</el-col>
		</el-row>
		<el-row class="bg1">
			<el-col :span="24">
				<h3 class="baseHeader" style="text-align: left">DCU参数</h3>
				<el-tabs v-model="activeName" type="card" @tab-click="handleClick">
					<el-tab-pane label="基础参数" name="first"></el-tab-pane>
					<el-tab-pane label="只读参数（左电机参数）" name="second"></el-tab-pane>
					<el-tab-pane label="只读参数（右电机参数）" name="fifth"></el-tab-pane>
					<el-tab-pane label="开门曲线参数（左电机读写）" name="third"></el-tab-pane>
					<el-tab-pane label="开门曲线参数（右电机读写）" name="fourth"></el-tab-pane>
				</el-tabs>
				<div style="display: flex;" v-if="activeName == 'first'">
					<div class="baseInfo" style="width: 100%;height: 430px;">
						<div class="baseInfoContent" style="margin-left:5vw">
							<el-form :model="baseForm">
								<el-row>
									<div class="baseInfo1 baseInfo1_first_1">
										<label class="baseInfo1_label">蜂鸣器音量大小</label>
										<el-form-item>
											<el-input
													v-model="baseForm.buzzerVolume"
													:disabled="DCUStatus"
													placeholder="" clearable
													@blur="(e)=>{inputBlur(baseForm,'buzzerVolume',0,6)}"
													class="input-width"></el-input>
										</el-form-item>
										<span class="company unit"></span>
										<span class="company" >(0~6)</span>
									</div>
									<div class="baseInfo1 baseInfo1_first_2">
										<label class="baseInfo1_label">机械解锁重新关门延时</label>
										<el-form-item>
											<el-input v-model="baseForm.mechanicalUnlockCloseDelay"
													:disabled="DCUStatus"
													placeholder="" clearable
													@blur="(e)=>{inputBlur(baseForm,'mechanicalUnlockCloseDelay',1000,12000)}"
													class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">10ms</span>
										<span class="company" >(1000~12000)</span>
									</div>
									<div class="baseInfo1 baseInfo1_first_3">
										<label class="baseInfo1_label">自学习使能</label>
										<el-form-item>
											<el-checkbox v-model="baseForm.selfLearningEnable" :disabled="DCUStatus"></el-checkbox>
										</el-form-item>
									</div>

								</el-row>
								<el-row>
									<div class="baseInfo1 baseInfo1_first_1">
										<label class="baseInfo1_label">电磁锁驱动驱动电压百分比</label>
										<el-form-item>
											<el-input v-model="baseForm.solenoidDriveVoltagePercent" 
												:disabled="DCUStatus"
												clearable
												@blur="(e)=>{inputBlur(baseForm,'solenoidDriveVoltagePercent',10,100)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">%</span>
										<span class="company">(10%~100%)</span>
									</div>
									<div class="baseInfo1 baseInfo1_first_2">
										<label class="baseInfo1_label">电磁锁保持电压百分比</label>
										<el-form-item>
											<el-input v-model="baseForm.solenoidHoldVoltagePercent" 
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm,'solenoidHoldVoltagePercent',10,100)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">%</span>
										<span class="company">(10%~100%)</span>
									</div>
									<div class="baseInfo1 baseInfo1_first_3">
										<label class="baseInfo1_label">解锁后关门使能</label>
										<el-form-item>
											<el-checkbox v-model="baseForm.unlockCloseEnable" :disabled="DCUStatus"></el-checkbox>
										</el-form-item>
									</div>
								</el-row>
								<el-row>
									<div class="baseInfo1 baseInfo1_first_1">
										<label class="baseInfo1_label">曲线开门时间</label>
										<el-form-item>
											<el-input v-model="baseForm.curveOpenTime"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm,'curveOpenTime',2500,3500)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">ms</span>
										<span class="company">(2500~3500ms)</span>
									</div>
									<div class="baseInfo1 baseInfo1_first_2">
										<label class="baseInfo1_label">曲线关门时间</label>
										<el-form-item>
											<el-input 
												v-model="baseForm.curveCloseTime" 
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm,'curveCloseTime',3000,4000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">ms</span>
										<span class="company">(3000~4000ms)</span>
									</div>
									<div class="baseInfo1 baseInfo1_first_3">
										<label class="baseInfo1_label">EED1使能</label>
										<el-form-item>
											<el-checkbox v-model="baseForm.eed1Enable" :disabled="DCUStatus"></el-checkbox>
										</el-form-item>
									</div>
								</el-row>
								<el-row>
									<div class="baseInfo1 baseInfo1_first_1">
										<label class="baseInfo1_label">门头灯开门闪烁周期</label>
										<el-form-item>
											<el-input  v-model="baseForm.doorLightOpenBlinkCycle"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm,'doorLightOpenBlinkCycle',100,2000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">ms</span>
										<span class="company">(100~2000ms)</span>
									</div>
									<div class="baseInfo1 baseInfo1_first_2">
										<label class="baseInfo1_label">门头灯关门闪烁周期</label>
										<el-form-item>
											<el-input v-model="baseForm.doorLightCloseBlinkCycle"
												:disabled="DCUStatus" 
												@blur="(e)=>{inputBlur(baseForm,'doorLightCloseBlinkCycle',100,2000)}"
												class="input-width">
											</el-input>
										</el-form-item>
										<span class="company unit">ms</span>
										<span class="company">(100~2000ms)</span>
									</div>
									<div class="baseInfo1 baseInfo1_first_3">
										<label class="baseInfo1_label">EED2使能</label>
										<el-form-item>
											<el-checkbox v-model="baseForm.eed2Enable" :disabled="DCUStatus"></el-checkbox>
										</el-form-item>
									</div>
								</el-row>
								<el-row>
									<div class="baseInfo1 baseInfo1_first_1">
										<label class="baseInfo1_label">故障闪烁周期</label>
										<el-form-item>
											<el-input v-model="baseForm.faultBlinkCycle"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm,'faultBlinkCycle',100,2000)}"
												class="input-width">
											</el-input>
										</el-form-item>
										<span class="company unit">ms</span>
										<span class="company">(100~2000ms)</span>
									</div>
									<div class="baseInfo1 baseInfo1_first_2">
										<label class="baseInfo1_label">遇阻后再运行延时</label>
										<el-form-item>
											<el-input v-model="baseForm.obstructionRetryDelay"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm,'obstructionRetryDelay',0,10000)}"
												class="input-width">
											</el-input>
										</el-form-item>
										<span class="company unit">ms</span>
										<span class="company">(0~10000ms)</span>
									</div>
									<div class="baseInfo1 baseInfo1_first_3">
										<label class="baseInfo1_label">火灾模式使能</label>
										<el-form-item>
											<el-checkbox v-model="baseForm.fireModeEnable" :disabled="DCUStatus"></el-checkbox>
										</el-form-item>
									</div>
								</el-row>
								<el-row>
									<div class="baseInfo1 baseInfo1_first_1">
										<label class="baseInfo1_label">遇阻后再运行次数</label>
										<el-form-item>
											<el-input v-model="baseForm.obstructionRetryCount"
													:disabled="DCUStatus"
													@blur="(e)=>{inputBlur(baseForm,'obstructionRetryCount',1,5)}"
													class="input-width">
											</el-input>
										</el-form-item>
										<span class="company unit"></span>
										<span class="company">(1~5)</span>
									</div>
									<div class="baseInfo1 baseInfo1_first_2">
										<label class="baseInfo1_label">遇阻后门开回走度</label>
										<el-form-item>
											<el-input v-model="baseForm.obstructionReturnOpenPercent"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm,'obstructionReturnOpenPercent',0,100)}"
												class="input-width">
											</el-input>
										</el-form-item>
										<span class="company unit">%</span>
										<span class="company">(0%~100%)</span>
									</div>
									<div class="baseInfo1 baseInfo1_first_3">
										<label class="baseInfo1_label">自定义曲线标志</label>
										<el-form-item>
											<el-checkbox v-model="baseForm.customCurveFlag" :disabled="DCUStatus"></el-checkbox>
										</el-form-item>
									</div>
								</el-row>
								<el-row>
									<div class="baseInfo1 baseInfo1_first_1">
										<label class="baseInfo1_label">关门最大夹紧力矩</label>
										<el-form-item>
											<el-input v-model="baseForm.closeMaxClampTorque"
												@blur="(e)=>{inputBlur(baseForm,'closeMaxClampTorque',0,1000)}"
												:disabled="DCUStatus"
												class="input-width">
											</el-input>
										</el-form-item>
										<span class="company unit"></span>
										<span class="company">(0~1000)</span>
									</div>
									<div class="baseInfo1 baseInfo1_first_2">
										<label class="baseInfo1_label">遇阻灵敏度</label>
										<el-form-item>
											<el-input v-model="baseForm.obstructionSensitivity"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm,'obstructionSensitivity',10,100)}"
												class="input-width">
											</el-input>
										</el-form-item>
										<span class="company unit">%</span>
										<span class="company">(10%~100%)</span>
									</div>
								</el-row>
							</el-form>
						</div>
					</div>
				</div>
				<div style="display: flex;" v-if="activeName == 'second'">
					<div class="baseInfo" style="width: 100%;height: 430px;">
						<div class="baseInfoContent" style="margin-left:5vw">
							<el-form :model="baseForm2">
								<el-row>
									<div class="baseInfo1 baseInfo1_second">
										<label class="baseInfo1_label">	电机型号</label>
										<el-form-item>
											<el-input v-model="baseForm2.motorModel"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm2,'motorModel',0,65535)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit"></span>
										<span class="company" >(0~65535)</span>
									</div>
									<div class="baseInfo1 baseInfo1_second">
										<label class="baseInfo1_label">	控制器版本号</label>
										<el-form-item>
											<el-input v-model="baseForm2.controllerVersion"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm2,'controllerVersion',0,65535)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit"></span>
										<span class="company" >(0~65535)</span>
									</div>
								</el-row>
								<el-row>
									<div class="baseInfo1 baseInfo1_second">
										<label class="baseInfo1_label">	驱动器版本号</label>
										<el-form-item>
											<el-input v-model="baseForm2.driverVersion"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm2,'driverVersion',0,65535)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit"></span>
										<span class="company" >(0~65535)</span>
									</div>
									<div class="baseInfo1 baseInfo1_second">
										<label class="baseInfo1_label">	门宽</label>
										<el-form-item>
											<el-input v-model="baseForm2.doorWidth"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm2,'doorWidth',0,3000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm</span>
										<span class="company" >(0~3000mm)</span>
									</div>
								</el-row>
								<el-row>
									<div class="baseInfo1 baseInfo1_second">
										<label class="baseInfo1_label">	门重</label>
										<el-form-item>
											<el-input v-model="baseForm2.doorWeight"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm2,'doorWeight',0,65535)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">kg</span>
										<span class="company" >(0~65535kg)</span>
									</div>
									<div class="baseInfo1 baseInfo1_second">
										<label class="baseInfo1_label">	上次开门时间</label>
										<el-form-item>
											<el-input v-model="baseForm2.lastOpenTime"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm2,'lastOpenTime',0,60000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">ms</span>
										<span class="company" >(0~60000ms)</span>
									</div>
								</el-row>
								<el-row>
									<div class="baseInfo1 baseInfo1_second">
										<label class="baseInfo1_label">	上次关门时间</label>
										<el-form-item>
											<el-input v-model="baseForm2.lastCloseTime"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm2,'lastCloseTime',0,60000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">ms</span>
										<span class="company" >(0~60000ms)</span>
									</div>
									<div class="baseInfo1 baseInfo1_second">
										<label class="baseInfo1_label">	上次解锁等待时间</label>
										<el-form-item>
											<el-input v-model="baseForm2.lastUnlockWaitTime"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm2,'lastUnlockWaitTime',0,60000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">ms</span>
										<span class="company" >(0~60000ms)</span>
									</div>
								</el-row>
								<el-row>
									<div class="baseInfo1 baseInfo1_second">
										<label class="baseInfo1_label">	电机转速</label>
										<el-form-item>
											<el-input v-model="baseForm2.motorSpeed"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm2,'motorSpeed',0,65535)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm/s</span>
										<span class="company" >(0~65535mm/s)</span>
									</div>
								</el-row>
							</el-form>
						</div>
					</div>
				</div>
				<div style="display: flex;" v-if="activeName == 'fifth'">
					<div class="baseInfo" style="width: 100%;height: 430px;">
						<div class="baseInfoContent" style="margin-left:5vw">
							<el-form :model="baseForm5">
								<el-row>
									<div class="baseInfo1 baseInfo1_second">
										<label class="baseInfo1_label">	电机型号</label>
										<el-form-item>
											<el-input v-model="baseForm5.motorModel"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm5,'motorModel',0,65535)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit"></span>
										<span class="company" >(0~65535)</span>
									</div>
									<div class="baseInfo1 baseInfo1_second">
										<label class="baseInfo1_label">	控制器版本号</label>
										<el-form-item>
											<el-input v-model="baseForm5.controllerVersion"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm5,'controllerVersion',0,65535)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit"></span>
										<span class="company" >(0~65535)</span>
									</div>
								</el-row>
								<el-row>
									<div class="baseInfo1 baseInfo1_second">
										<label class="baseInfo1_label">	驱动器版本号</label>
										<el-form-item>
											<el-input v-model="baseForm5.driverVersion"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm5,'driverVersion',0,65535)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit"></span>
										<span class="company" >(0~65535)</span>
									</div>
									<div class="baseInfo1 baseInfo1_second">
										<label class="baseInfo1_label">	门宽</label>
										<el-form-item>
											<el-input v-model="baseForm5.doorWidth"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm5,'doorWidth',0,3000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm</span>
										<span class="company" >(0~3000mm)</span>
									</div>
								</el-row>
								<el-row>
									<div class="baseInfo1 baseInfo1_second">
										<label class="baseInfo1_label">	门重</label>
										<el-form-item>
											<el-input v-model="baseForm5.doorWeight"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm5,'doorWeight',0,65535)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">kg</span>
										<span class="company" >(0~65535kg)</span>
									</div>
									<div class="baseInfo1 baseInfo1_second">
										<label class="baseInfo1_label">	上次开门时间</label>
										<el-form-item>
											<el-input v-model="baseForm5.lastOpenTime"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm5,'lastOpenTime',0,60000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">ms</span>
										<span class="company" >(0~60000ms)</span>
									</div>
								</el-row>
								<el-row>
									<div class="baseInfo1 baseInfo1_second">
										<label class="baseInfo1_label">	上次关门时间</label>
										<el-form-item>
											<el-input v-model="baseForm5.lastCloseTime"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm5,'lastCloseTime',0,60000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">ms</span>
										<span class="company" >(0~60000ms)</span>
									</div>
									<div class="baseInfo1 baseInfo1_second">
										<label class="baseInfo1_label">	上次解锁等待时间</label>
										<el-form-item>
											<el-input v-model="baseForm5.lastUnlockWaitTime"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm5,'lastUnlockWaitTime',0,60000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">ms</span>
										<span class="company" >(0~60000ms)</span>
									</div>
								</el-row>
								<el-row>
									<div class="baseInfo1 baseInfo1_second">
										<label class="baseInfo1_label">	电机转速</label>
										<el-form-item>
											<el-input v-model="baseForm5.motorSpeed"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm5,'lastUnlockWaitTime',0,65535)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm/s</span>
										<span class="company" >(0~65535mm/s)</span>
									</div>
								</el-row>
							</el-form>
						</div>
					</div>
				</div>
				<div style="display: flex;" v-if="activeName == 'third'">
					<div class="baseInfo" style="width: 100%;height: 430px;">
						<div class="baseInfoContent">
							<el-form :model="baseForm3">
								<el-row>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	开门初段爬行速度</label>
										<el-form-item>
											<el-input v-model="baseForm3.openInitialCrawlSpeed"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm3,'openInitialCrawlSpeed',30,90)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm/s</span>
										<span class="company" >(30~90mm/s)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	关门初段爬行速度</label>
										<el-form-item>
											<el-input v-model="baseForm3.closeInitialCrawlSpeed"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm3,'closeInitialCrawlSpeed',60,500)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm/s</span>
										<span class="company" >(60~500mm/s)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	电流环Kp</label>
										<el-form-item>
											<el-input v-model="baseForm3.currentLoopKp"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm3,'currentLoopKp',0,5000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit"></span>
										<span class="company" >(0~5000)</span>
									</div>
								</el-row>
								<el-row>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	开门末段爬行速度</label>
										<el-form-item>
											<el-input v-model="baseForm3.openFinalCrawlSpeed"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm3,'openFinalCrawlSpeed',30,90)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm/s</span>
										<span class="company" >(30~90mm/s)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	关门末段爬行速度</label>
										<el-form-item>
											<el-input v-model="baseForm3.closeFinalCrawlSpeed"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm3,'closeFinalCrawlSpeed',30,90)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm/s</span>
										<span class="company" >(30~90mm/s)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	电流环Ki</label>
										<el-form-item>
											<el-input v-model="baseForm3.currentLoopKi"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm3,'currentLoopKi',0,5000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit"></span>
										<span class="company" >(0~5000)</span>
									</div>
								</el-row>
								<el-row>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	开门初段爬行距离</label>
										<el-form-item>
											<el-input v-model="baseForm3.openInitialCrawlDistance"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm3,'openInitialCrawlDistance',0,100)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm</span>
										<span class="company" >(0~100mm)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	关门初段爬行距离</label>
										<el-form-item>
											<el-input v-model="baseForm3.closeInitialCrawlDistance"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm3,'closeInitialCrawlDistance',0,100)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm</span>
										<span class="company" >(0~100mm)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	电流环Kd</label>
										<el-form-item>
											<el-input v-model="baseForm3.currentLoopKd"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm3,'currentLoopKd',0,5000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit"></span>
										<span class="company" >(0~5000)</span>
									</div>
								</el-row>
								<el-row>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	开门末段爬行距离</label>
										<el-form-item>
											<el-input v-model="baseForm3.openFinalCrawlDistance"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm3,'openFinalCrawlDistance',20,100)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm</span>
										<span class="company" >(20~100mm)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	关门末段爬行距离</label>
										<el-form-item>
											<el-input v-model="baseForm3.closeFinalCrawlDistance"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm3,'closeFinalCrawlDistance',40,100)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm</span>
										<span class="company" >(40~100mm)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	速度环Kp1</label>
										<el-form-item>
											<el-input v-model="baseForm3.speedLoopKp1"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm3,'speedLoopKp1',0,30000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit"></span>
										<span class="company" >(0~30000)</span>
									</div>
								</el-row>
								<el-row>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	最大开门速度</label>
										<el-form-item>
											<el-input v-model="baseForm3.maxOpenSpeed"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm3,'maxOpenSpeed',100,650)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm/s</span>
										<span class="company" >(100~650mm/s)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	最大关门速度</label>
										<el-form-item>
											<el-input v-model="baseForm3.maxCloseSpeed"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm3,'maxCloseSpeed',100,650)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm/s</span>
										<span class="company" >(100~650mm/s)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	速度环Ki1</label>
										<el-form-item>
											<el-input v-model="baseForm3.speedLoopKi1"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm3,'speedLoopKi1',0,30000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit"></span>
										<span class="company" >(0~30000)</span>
									</div>
								</el-row>
								<el-row>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	开门爬坡加速度</label>
										<el-form-item>
											<el-input v-model="baseForm3.openRampUpAcceleration"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm3,'openRampUpAcceleration',300,1400)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm/s^2</span>
										<span class="company" >(300~1400mm/s^2)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	关门爬坡加速度</label>
										<el-form-item>
											<el-input v-model="baseForm3.closeRampUpAcceleration"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm3,'closeRampUpAcceleration',300,1400)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm/s^2</span>
										<span class="company" >(300~1400mm/s^2)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	速度环Kd1</label>
										<el-form-item>
											<el-input v-model="baseForm3.speedLoopKd1"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm3,'speedLoopKd1',0,2000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit"></span>
										<span class="company" >(0~2000)</span>
									</div>
								</el-row>
								<el-row>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	开门下坡加速度</label>
										<el-form-item>
											<el-input v-model="baseForm3.openRampDownAcceleration"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm3,'openRampDownAcceleration',300,1400)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm/s^2</span>
										<span class="company" >(300~1400mm/s^2)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	关门下坡加速度</label>
										<el-form-item>
											<el-input v-model="baseForm3.closeRampDownAcceleration"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm3,'closeRampDownAcceleration',300,1400)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm/s^2</span>
										<span class="company" >(300~1400mm/s^2)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	速度环Kp2</label>
										<el-form-item>
											<el-input v-model="baseForm3.speedLoopKp2"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm3,'speedLoopKp2',0,30000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit"></span>
										<span class="company" >(0~30000)</span>
									</div>
								</el-row>
								<el-row>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	开门匀速距离微调</label>
										<el-form-item>
											<el-input v-model="baseForm3.openConstantSpeedDistanceAdjustment"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm3,'openConstantSpeedDistanceAdjustment',0,500)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm</span>
										<span class="company" >(0~500mm)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	关门匀速距离微调</label>
										<el-form-item>
											<el-input v-model="baseForm3.closeConstantSpeedDistanceAdjustment"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm3,'closeConstantSpeedDistanceAdjustment',0,500)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm</span>
										<span class="company" >(0~500mm)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	速度环Ki2</label>
										<el-form-item>
											<el-input v-model="baseForm3.speedLoopKi2"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm3,'speedLoopKi2',0,30000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit"></span>
										<span class="company" >(0~30000)</span>
									</div>
								</el-row>
								<el-row>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	开门总时间微调</label>
										<el-form-item>
											<el-input v-model="baseForm3.openTotalTimeAdjustment"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm3,'openTotalTimeAdjustment',0,1000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">ms</span>
										<span class="company" >(0~1000ms)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	关门总时间微调</label>
										<el-form-item>
											<el-input v-model="baseForm3.closeTotalTimeAdjustment"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm3,'closeTotalTimeAdjustment',0,1000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">ms</span>
										<span class="company" >(0~1000ms)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	速度环Kd2</label>
										<el-form-item>
											<el-input v-model="baseForm3.speedLoopKd2"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm3,'speedLoopKd2',0,2000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit"></span>
										<span class="company" >(0~2000)</span>
									</div>
								</el-row>
							</el-form>
						</div>
					</div>
				</div>
				<div style="display: flex;" v-if="activeName == 'fourth'">
					<div class="baseInfo" style="width: 100%;height: 430px;">
						<div class="baseInfoContent">
							<el-form :model="baseForm3">
								<el-row>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	开门初段爬行速度</label>
										<el-form-item>
											<el-input v-model="baseForm4.openInitialCrawlSpeed"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm4,'openInitialCrawlSpeed',30,90)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm/s</span>
										<span class="company" >(30~90mm/s)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	关门初段爬行速度</label>
										<el-form-item>
											<el-input v-model="baseForm4.closeInitialCrawlSpeed"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm4,'closeInitialCrawlSpeed',60,500)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm/s</span>
										<span class="company" >(60~500mm/s)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	电流环Kp</label>
										<el-form-item>
											<el-input v-model="baseForm4.currentLoopKp"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm4,'currentLoopKp',0,5000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit"></span>
										<span class="company" >(0~5000)</span>
									</div>
								</el-row>
								<el-row>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	开门末段爬行速度</label>
										<el-form-item>
											<el-input v-model="baseForm4.openFinalCrawlSpeed"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm4,'openFinalCrawlSpeed',30,90)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm/s</span>
										<span class="company" >(30~90mm/s)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	关门末段爬行速度</label>
										<el-form-item>
											<el-input v-model="baseForm4.closeFinalCrawlSpeed"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm4,'closeFinalCrawlSpeed',30,90)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm/s</span>
										<span class="company" >(30~90mm/s)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	电流环Ki</label>
										<el-form-item>
											<el-input v-model="baseForm4.currentLoopKi"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm4,'currentLoopKi',0,5000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit"></span>
										<span class="company" >(0~5000)</span>
									</div>
								</el-row>
								<el-row>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	开门初段爬行距离</label>
										<el-form-item>
											<el-input v-model="baseForm4.openInitialCrawlDistance"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm4,'openInitialCrawlDistance',0,100)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm</span>
										<span class="company" >(0~100mm)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	关门初段爬行距离</label>
										<el-form-item>
											<el-input v-model="baseForm4.closeInitialCrawlDistance"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm4,'closeInitialCrawlDistance',0,100)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm</span>
										<span class="company" >(0~100mm)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	电流环Kd</label>
										<el-form-item>
											<el-input v-model="baseForm4.currentLoopKd"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm4,'currentLoopKd',0,5000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit"></span>
										<span class="company" >(0~5000)</span>
									</div>
								</el-row>
								<el-row>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	开门末段爬行距离</label>
										<el-form-item>
											<el-input v-model="baseForm4.openFinalCrawlDistance"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm4,'openFinalCrawlDistance',20,100)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm</span>
										<span class="company" >(20~100mm)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	关门末段爬行距离</label>
										<el-form-item>
											<el-input v-model="baseForm4.closeFinalCrawlDistance"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm4,'closeFinalCrawlDistance',40,100)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm</span>
										<span class="company" >(40~100mm)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	速度环Kp1</label>
										<el-form-item>
											<el-input v-model="baseForm4.speedLoopKp1"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm4,'speedLoopKp1',0,30000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit"></span>
										<span class="company" >(0~30000)</span>
									</div>
								</el-row>
								<el-row>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	最大开门速度</label>
										<el-form-item>
											<el-input v-model="baseForm4.maxOpenSpeed"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm4,'maxOpenSpeed',100,650)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm/s</span>
										<span class="company" >(100~650mm/s)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	最大关门速度</label>
										<el-form-item>
											<el-input v-model="baseForm4.maxCloseSpeed"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm4,'maxCloseSpeed',100,650)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm/s</span>
										<span class="company" >(100~650mm/s)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	速度环Ki1</label>
										<el-form-item>
											<el-input v-model="baseForm4.speedLoopKi1"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm4,'speedLoopKi1',0,30000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit"></span>
										<span class="company" >(0~30000)</span>
									</div>
								</el-row>
								<el-row>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	开门爬坡加速度</label>
										<el-form-item>
											<el-input v-model="baseForm4.openRampUpAcceleration"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm4,'openRampUpAcceleration',300,1400)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm/s^2</span>
										<span class="company" >(300~1400mm/s^2)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	关门爬坡加速度</label>
										<el-form-item>
											<el-input v-model="baseForm4.closeRampUpAcceleration"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm4,'closeRampUpAcceleration',300,1400)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm/s^2</span>
										<span class="company" >(300~1400mm/s^2)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	速度环Kd1</label>
										<el-form-item>
											<el-input v-model="baseForm4.speedLoopKd1"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm4,'speedLoopKd1',0,2000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit"></span>
										<span class="company" >(0~2000)</span>
									</div>
								</el-row>
								<el-row>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	开门下坡加速度</label>
										<el-form-item>
											<el-input v-model="baseForm4.openRampDownAcceleration"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm4,'openRampDownAcceleration',300,1400)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm/s^2</span>
										<span class="company" >(300~1400mm/s^2)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	关门下坡加速度</label>
										<el-form-item>
											<el-input v-model="baseForm4.closeRampDownAcceleration"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm4,'closeRampDownAcceleration',300,1400)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm/s^2</span>
										<span class="company" >(300~1400mm/s^2)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	速度环Kp2</label>
										<el-form-item>
											<el-input v-model="baseForm4.speedLoopKp2"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm4,'speedLoopKp2',0,30000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit"></span>
										<span class="company" >(0~30000)</span>
									</div>
								</el-row>
								<el-row>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	开门匀速距离微调</label>
										<el-form-item>
											<el-input v-model="baseForm4.openConstantSpeedDistanceAdjustment"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm4,'openConstantSpeedDistanceAdjustment',0,500)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm</span>
										<span class="company" >(0~500mm)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	关门匀速距离微调</label>
										<el-form-item>
											<el-input v-model="baseForm4.closeConstantSpeedDistanceAdjustment"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm4,'closeConstantSpeedDistanceAdjustment',0,500)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">mm</span>
										<span class="company" >(0~500mm)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	速度环Ki2</label>
										<el-form-item>
											<el-input v-model="baseForm4.speedLoopKi2"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm4,'speedLoopKi2',0,30000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit"></span>
										<span class="company" >(0~30000)</span>
									</div>
								</el-row>
								<el-row>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	开门总时间微调</label>
										<el-form-item>
											<el-input v-model="baseForm4.openTotalTimeAdjustment"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm4,'openTotalTimeAdjustment',0,1000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">ms</span>
										<span class="company" >(0~1000ms)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	关门总时间微调</label>
										<el-form-item>
											<el-input v-model="baseForm4.closeTotalTimeAdjustment"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm4,'closeTotalTimeAdjustment',0,1000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit">ms</span>
										<span class="company" >(0~1000ms)</span>
									</div>
									<div class="baseInfo1 baseInfo1_third">
										<label class="baseInfo1_label">	速度环Kd2</label>
										<el-form-item>
											<el-input v-model="baseForm4.speedLoopKd2"
												:disabled="DCUStatus"
												@blur="(e)=>{inputBlur(baseForm4,'speedLoopKd2',0,2000)}"
												class="input-width"></el-input>
										</el-form-item>
										<span class="company unit"></span>
										<span class="company" >(0~2000)</span>
									</div>
								</el-row>
							</el-form>
						</div>
					</div>
				</div>
			</el-col>
		</el-row>
		<el-row class="">
			<el-col :span="12" class="cure">
				<h5 class="baseHeader" style="text-align: left;font-size: 16px;">
					开门速度曲线及动能曲线实时参数
					<div class="chartbase">
						<el-select v-model="velocityCurveOpen" placeholder="请选择DCU编号" @change="CurveChange(0)">
							<el-option v-for="item in DCUoptions" :key="item.dcu" :label="item.dcu"
								:value="item.dcu">
							</el-option>
						</el-select>
					</div>

				</h5>

				<div style="display: flex; width: 100%;height: 100%;">
					<div class="baseInfoEcharts">
						<!-- @dblclick="echarts(0)" -->
						<div id="baseEcharts" style="width: 100%; height:85%"></div>
					</div>
				</div>

			</el-col>
			<el-col :span="12" class="cure cure1">
				<h5 class="baseHeader" style="text-align: left;font-size: 16px;">
					关门速度曲线及动能曲线实时参数
					<div class="chartbase">
						<el-select v-model="velocityCurveClose" placeholder="请选择DCU编号" @change="CurveChange(1)">
							<el-option v-for="item in DCUoptions" :key="item.dcu" :label="item.dcu"
								:value="item.dcu">
							</el-option>
						</el-select>
					</div>
				</h5>
				<div style="display: flex; width: 100%;height: 100%;">
					<div class="baseInfoEcharts">
						<!-- @dblclick="echarts(1)" -->
						<div id="baseEchartsClose" style="width: 100%; height:85%"></div>
					</div>
				</div>
			</el-col>
		</el-row>
		<oper-data v-if="operdataVisible" ref="operdataFrom" @refreshDataList="init"></oper-data>
		<history-or-update v-if="historyVisible" ref="historyForm" @refreshDataList="init" @getHistory="getHistory">
		</history-or-update>
		<el-dialog :visible.sync="saveVisible" title="DCU数据保存" :close-on-click-modal="false"
			:close-on-press-escape="false">
			<el-form :model="saveForm" ref="saveForm" :rules="saveRule" @keyup.enter.native="confirm()"
				label-width="200px">
				<el-form-item prop="name" label="DCU数据保存名称">
					<el-input v-model="saveForm.name" placeholder="DCU数据保存名称"></el-input>
				</el-form-item>
			</el-form>
			<template slot="footer">
				<el-button @click="saveVisible = false">{{ $t("cancel") }}</el-button>
				<el-button type="primary" @click="confirm()">{{
          $t("confirm")
        }}</el-button>
			</template>
		</el-dialog>
	</div>
</template>

<script>
	import debounce from "lodash/debounce";
	import * as echarts from "echarts";
	import utils from "@/utils/utils";
	import Cookies from "js-cookie";
	import AddOrUpdate from "./oper-add-or-update.vue";
	import SaveOrUpdate from "./save-or-update.vue";
	import operData from "./oper-data.vue";
	import historyOrUpdate from "./oper-add-or-update.vue";
	import mixinViewModule from '@/mixins/view-module'
	import { getOrder,getStep} from "@/utils";
import { _ } from "core-js";
	export default {
		components: {
			AddOrUpdate,
			SaveOrUpdate,
			operData,
			historyOrUpdate,
		},
		mixins: [mixinViewModule],
		data() {
			return {
				mixinViewModuleOptions: {
					createdIsNeed: false,
					activatedIsNeed: false,
					exportURL: '/psc/dcuparameters/export'
				},
				dataForm: {
					stationSide: 1,
					DCU: "",
					CPU: "",
				},
				options: utils.StationList,
				DCUoptions: [],
				CPUoptions: utils.cpuType,
				DCUStatus: true,
				saveVisible: false, //保存名字
				baseForm : {
					buzzerVolume: null,
					mechanicalUnlockCloseDelay: null,
					solenoidDriveVoltagePercent:null,
					solenoidHoldVoltagePercent:null,
					curveOpenTime:null,
					curveCloseTime:null,
					doorLightOpenBlinkCycle:null,
					doorLightCloseBlinkCycle:null,
					faultBlinkCycle:null,
					obstructionRetryDelay:null,
					obstructionRetryCount:null,
					obstructionReturnOpenPercent:null,
					closeMaxClampTorque:null,
					obstructionSensitivity:null
				},
				baseForm2 : {
					motorModel : null,
					controllerVersion:null,
					driverVersion:null,
					doorWidth:null,
					doorWeight:null,
					lastOpenTime:null,
					lastCloseTime:null,
					lastUnlockWaitTime:null,
					motorSpeed:null
				},
				baseForm3: {
					openInitialCrawlSpeed:null,
					closeInitialCrawlSpeed:null,
					currentLoopKp:null,
					openFinalCrawlSpeed:null,
					closeFinalCrawlSpeed:null,
					currentLoopKi:null,
					openInitialCrawlDistance:null,
					closeInitialCrawlDistance:null,
					currentLoopKd:null,
					openFinalCrawlDistance:null,
					closeFinalCrawlDistance:null,
					speedLoopKp1:null,
					maxOpenSpeed:null,
					maxCloseSpeed:null,
					speedLoopKi1:null,
					openRampUpAcceleration:null,
					closeRampUpAcceleration:null,
					speedLoopKd1:null,
					openRampDownAcceleration:null,
					closeRampDownAcceleration:null,
					speedLoopKp2:null,
					openConstantSpeedDistanceAdjustment:null,
					closeConstantSpeedDistanceAdjustment:null,
					speedLoopKi2:null,
					openTotalTimeAdjustment:null,
					closeTotalTimeAdjustment:null,
					speedLoopKd2:null
				},
				baseForm4: {
					openInitialCrawlSpeed:null,
					closeInitialCrawlSpeed:null,
					currentLoopKp:null,
					openFinalCrawlSpeed:null,
					closeFinalCrawlSpeed:null,
					currentLoopKi:null,
					openInitialCrawlDistance:null,
					closeInitialCrawlDistance:null,
					currentLoopKd:null,
					openFinalCrawlDistance:null,
					closeFinalCrawlDistance:null,
					speedLoopKp1:null,
					maxOpenSpeed:null,
					maxCloseSpeed:null,
					speedLoopKi1:null,
					openRampUpAcceleration:null,
					closeRampUpAcceleration:null,
					speedLoopKd1:null,
					openRampDownAcceleration:null,
					closeRampDownAcceleration:null,
					speedLoopKp2:null,
					openConstantSpeedDistanceAdjustment:null,
					closeConstantSpeedDistanceAdjustment:null,
					speedLoopKi2:null,
					openTotalTimeAdjustment:null,
					closeTotalTimeAdjustment:null,
					speedLoopKd2:null
				},
				baseForm5: {
					motorModel:null,
					controllerVersion:null,
					driverVersion:null,
					doorWidth:null,
					doorWeight:null,
					lastOpenTime:null,
					lastCloseTime:null,
					lastUnlockWaitTime:null,
					motorSpeed:null
				},
				type: Cookies.get("type"), //Cookies.get('type')
				leftStatus: false,
				rightStatus: false,
				num: 0,
				dataX: [],
				dataY: [],
				dataYD: [],
				dataX1: [],
				dataY1: [],
				dataYD1: [],
				addOrUpdateVisible: false,
				saveOrUpdateVisible: false, //名字保存
				operdataVisible: false,
				historyVisible: false,
				checkOptions: {
					isIndeterminate: false,
					checkAll: false,
				},
				saveForm: {
					name: "",
				},
				activeIndex: "",
				readDataStatus: false,
				velocityCurveOpen: "",
				velocityCurveClose: "",
				velocityCurveTime: "",
				velocityCurveTime1: "",
				velocityCurveList: [{
						id: 0,
						name: '实时曲线'
					},
					{
						id: 1,
						name: "64条曲线"
					}
				],
				CurveTimeList: [],
				CurveTimeListClose: [],
				curve64Status: false,
				curve64StatusClose: false,
				openchart: '', //开门速度曲线
				closechart: '', //关门速度曲线
				stepUp: '', //上行step值
				stepDown: '', //下行step值
				stationSide: '', //选中门的上下行
				defaultStatus:false,
				activeName: 'first',
				isSubmitDisabled:true,
				buttonDisabled:true,
			};
		},
		// mounted() {
		// 	window.addEventListener('onmessageWSDCU', this.getSocketDataDCU)
		// },
		// destroyed() {
		// 	window.removeEventListener('onmessageWSDCU', this.getSocketDataDCU)
		// },
		computed: {
			saveRule() {
				return {
					name: [{
						required: true,
						message: "DCU数据保存名称不能为空",
						trigger: "blur",
					}, ],
				};
			},
			isFormComplete(){
				var isComplete = true;
				switch (this.activeName) {
					case "first":
						Object.keys(this.baseForm).forEach((key) => {
							if (this.baseForm[key] === "" || this.baseForm[key] === null || this.baseForm[key] == undefined) {
								isComplete = false
							} 
						})
						break;
					case "second":
						Object.keys(this.baseForm2).forEach((key) => {
							if (this.baseForm2[key] === "" || this.baseForm2[key] === null || this.baseForm2[key] == undefined) {
								isComplete = false
							} 
						})
						break;
					case "third":
						Object.keys(this.baseForm3).forEach((key) => {
							if (this.baseForm3[key] === "" || this.baseForm3[key] === null || this.baseForm3[key] == undefined) {
								isComplete = false
							} 
						})
						break;
					case "fourth":
						Object.keys(this.baseForm4).forEach((key) => {
							if (this.baseForm4[key] === "" || this.baseForm4[key] === null || this.baseForm4[key] == undefined) {
								isComplete = false
							} 
						})
						break;
					case "fifth":
						Object.keys(this.baseForm5).forEach((key) => {
							if (this.baseForm5[key] === "" || this.baseForm5[key] === null || this.baseForm5[key] == undefined) {
								isComplete = false
							} 
						})
						break;
					default:
						break;
				}
				
				if(this.buttonDisabled){
					isComplete = false
				}
				return isComplete;
			}
		},
		activated() {
			this.init();
		},
		methods: {
			inputBlur(value,name,min,max){
				const positiveIntegerReg = /^[1-9]\d*$/;
				if(value[name] === "" || value[name] === null || value[name] == undefined){
					value[name] = null
				}else{
					if(positiveIntegerReg.test(value[name])){
						value[name] = Math.min(Math.max(value[name], min), max)
					}else{
						value[name] = 0
					}
				}
			},

			// 流向全选
			handleCheckAllChange(e) {
				this.dataForm.DCU = e ? this.DCUoptions.map((item) => item.dcu) : [];
				this.checkOptions.isIndeterminate = false;
			},
			handleClick(tab, event) {
				console.log(tab, event);
			},
			getSocketDataDCU(res) {
				console.log(res, '运行参数返回的值')
				if (res.detail.data) {
					this.init()
				}
			},
			init(val) {
				// this.dataForm.DCU = ''
				//获取门的信息
				var p0 = new Promise((resolve, reject) => {
					this.getdoorList(() => {
						resolve();
					});
				});
				Promise.all([p0]).then(() => {
					this.num = 0;
					this.dataX = [0];
					this.dataY = [0];
					this.dataYD = [0];
					this.dataX1 = [0];
					this.dataY1 = [0];
					this.dataYD1 = [0];
					//切换实时数据
					if (val == 0) {
						this.initEcharts();
					}
					if (val == 1) {
						this.initEchartsClose();
					}
					if (val == undefined) {
						this.initEcharts();
						this.initEchartsClose();
					}
					this.handleMsg();
					// this.getDCUCS()
					// this.initEcharts()
				});
			},
			//接收websocket数据
			handleMsg() {
				this.$globalWebSocket.ws1.send("DCU");
				this.$globalWebSocket.ws1.onmessage = this.getMessage;
			},
			//获取websocket数据
			getMessage(e) {
				var data = JSON.parse(e.data);
				if (data.dcuHeartBeatCurve && data.dcuHeartBeatCurve.dcuId !== 0) {
					var message = data.dcuHeartBeatCurve
					// 上下行的选择
					if (this.stationSide == 1) {
						var doorID = Number(this.dataForm.DCU) - this.stepUp
					}
					if (this.stationSide == 0) {
						var doorID = Number(this.dataForm.DCU) - this.stepDown + 128
					}
					// // 上下行的选择
					// if (doorID == data.dcuId && this.dataForm.DCU !== 0) {
					// 	this.getDataFour(message);
					// }
					if (doorID == data.dcuId && message.openClose == 1 && !this.curve64Status) { //开门速度曲线
						this.getCureSpeed(message, data.curTime)
						this.refreshData(this.dataX, this.dataYD, this.dataY, 0);
					} else if (doorID == data.dcuId && message.openClose == 3 && !this.curve64StatusClose) { //关门速度曲线
						this.getCureSpeedClose(message, data.curTime)
						this.refreshData(this.dataX1, this.dataYD1, this.dataY1, 1);
					} else {
						this.dataX = [0];
						this.dataY = [0];
						this.dataYD = [0];
						this.dataX1 = [0];
						this.dataY1 = [0];
						this.dataYD1 = [0];
						this.refreshData(this.dataX, this.dataYD, this.dataY, 0);
						this.refreshData(this.dataX1, this.dataYD1, this.dataY1, 1);
					}
				}
			},
			cleardoorChange(){
				this.buttonDisabled = true
			},
			getdoorChange(val) {
				if(val.length  == 0){
					this.buttonDisabled = true
				}else{
					this.buttonDisabled = false
				}
				// if (val == '') {
				// 	this.dataX = [0];
				// 	this.dataY = [0];
				// 	this.dataYD = [0];
				// 	this.dataX1 = [0];
				// 	this.dataY1 = [0];
				// 	this.dataYD1 = [0];
				// 	this.refreshData(this.dataX, this.dataYD, this.dataY, 0);
				// 	this.refreshData(this.dataX1, this.dataYD1, this.dataY1, 1);
				// }
				this.DCUoptions.forEach((item, index) => {
					if (item.dcu == this.dataForm.DCU) {
						if (index > 40) {
							this.activeIndex = this.dataForm.DCU - 100; //当前选中的DCUIndex
						} else {
							this.activeIndex = index; //当前选中的DCUIndex
						}
						this.stationSide = item.stationSide
					}
				});
				this.DCUStatus = false
				this.baseForm = {
					buzzerVolume: null,
					mechanicalUnlockCloseDelay: null,
					solenoidDriveVoltagePercent:null,
					solenoidHoldVoltagePercent:null,
					curveOpenTime:null,
					curveCloseTime:null,
					doorLightOpenBlinkCycle:null,
					doorLightCloseBlinkCycle:null,
					faultBlinkCycle:null,
					obstructionRetryDelay:null,
					obstructionRetryCount:null,
					obstructionReturnOpenPercent:null,
					closeMaxClampTorque:null,
					obstructionSensitivity:null
				}
				this.baseForm2 = {
					motorModel : null,
					controllerVersion:null,
					driverVersion:null,
					doorWidth:null,
					doorWeight:null,
					lastOpenTime:null,
					lastCloseTime:null,
					lastUnlockWaitTime:null,
					motorSpeed:null
				}
				this.baseForm3 =  {
					openInitialCrawlSpeed:null,
					closeInitialCrawlSpeed:null,
					currentLoopKp:null,
					openFinalCrawlSpeed:null,
					closeFinalCrawlSpeed:null,
					currentLoopKi:null,
					openInitialCrawlDistance:null,
					closeInitialCrawlDistance:null,
					currentLoopKd:null,
					openFinalCrawlDistance:null,
					closeFinalCrawlDistance:null,
					speedLoopKp1:null,
					maxOpenSpeed:null,
					maxCloseSpeed:null,
					speedLoopKi1:null,
					openRampUpAcceleration:null,
					closeRampUpAcceleration:null,
					speedLoopKd1:null,
					openRampDownAcceleration:null,
					closeRampDownAcceleration:null,
					speedLoopKp2:null,
					openConstantSpeedDistanceAdjustment:null,
					closeConstantSpeedDistanceAdjustment:null,
					speedLoopKi2:null,
					openTotalTimeAdjustment:null,
					closeTotalTimeAdjustment:null,
					speedLoopKd2:null
				}
				this.baseForm4 =  {
					openInitialCrawlSpeed:null,
					closeInitialCrawlSpeed:null,
					currentLoopKp:null,
					openFinalCrawlSpeed:null,
					closeFinalCrawlSpeed:null,
					currentLoopKi:null,
					openInitialCrawlDistance:null,
					closeInitialCrawlDistance:null,
					currentLoopKd:null,
					openFinalCrawlDistance:null,
					closeFinalCrawlDistance:null,
					speedLoopKp1:null,
					maxOpenSpeed:null,
					maxCloseSpeed:null,
					speedLoopKi1:null,
					openRampUpAcceleration:null,
					closeRampUpAcceleration:null,
					speedLoopKd1:null,
					openRampDownAcceleration:null,
					closeRampDownAcceleration:null,
					speedLoopKp2:null,
					openConstantSpeedDistanceAdjustment:null,
					closeConstantSpeedDistanceAdjustment:null,
					speedLoopKi2:null,
					openTotalTimeAdjustment:null,
					closeTotalTimeAdjustment:null,
					speedLoopKd2:null
				}
				this.baseForm5 = {
					motorModel:null,
					controllerVersion:null,
					driverVersion:null,
					doorWidth:null,
					doorWeight:null,
					lastOpenTime:null,
					lastCloseTime:null,
					lastUnlockWaitTime:null,
					motorSpeed:null
				}
				const nowLength = this.dataForm.DCU.length;
				this.checkOptions.isIndeterminate =
					nowLength > 0 && nowLength < this.DCUoptions.length;
				this.checkOptions.checkAll = nowLength == this.DCUoptions.length;
			},
			// 新增毫秒相加
			getnewSeconds(val, tep) {
				var newTime = new Date(val + tep * 1000); //根据时间戳和秒相加得到最新的时间戳

				return this.filterTime(newTime);
			},
			//DCU编号数组
			getdoorList(callback) {
				this.DCUoptions = [];
				this.$http.get("/psc/door/getDoor").then((res) => {
					this.DCUoptions = [];
					this.DCUoptions = res.data.data.up.concat(res.data.data.down);
					// 2023年5月26日开始
					this.stepUp = getStep(res.data.data.up) 
					this.stepDown = getStep(res.data.data.down)
					// 2023年5月26日结束
					for (var i = 0; i < this.DCUoptions.length; i++) {
						if (
							this.DCUoptions[i].doorType === 0 ||
							this.DCUoptions[i].doorType === 2
						) {
							this.DCUoptions.splice(i, 1); // 将使后面的元素依次前移，数组长度减1
							i--; // 如果不减，将漏掉一个元素
						}
					}
					if (callback) {
						callback();
					}
				});
			},
			//读取DCU最新版
			readDCUNew: debounce(
				function() {
					this.buttonDisabled = true
					//去读取
					this.readDataStatus = true
					if (this.dataForm.DCU.length > 1) {
						this.readButtonDisabled = false
						return this.$message.error("门控制单元编号只能选一个");
					} else if (this.dataForm.DCU.length == 0) {
						this.readButtonDisabled = false
						return this.$message.error("请选择门控单元编号");
					} else {
						this.getDCUCS();
					}
				},
				500, {
					leading: true,
					trailing: false,
				}
			),
			//获取DCU初始值
			getDCUCS() {
				var requiredName = ""
				switch (this.activeName) {
					case "first":
						requiredName = "/psc/dcuparameters/readBasicParameter/"
						break;
					case "second":
						requiredName = "/psc/dcuparameters/ReadLeftMotorParameters/"
						break;
					case "third":
						requiredName = "/psc/dcuparameters/DcuOpenCurveLeftParameters/"
						break;
					case "fourth":
						requiredName = "/psc/dcuparameters/DcuOpenCurveRightParameters/"
						break;
					case "fifth":
						requiredName = "/psc/dcuparameters/ReadRightMotorParameters/"
						break;
					default:
						break;
				}
				if(requiredName == ""){
					this.$message.error("参数异常");
					this.buttonDisabled = false
					return false
				}
				this.$http
					.get(requiredName + this.returnDoorId()[0])
					.then((res) => {
						if (res.data.code !== 0) {
							if(!this.defaultStatus){
								this.buttonDisabled = false
								this.getData({
									buzzerVolume:null,
									mechanicalUnlockCloseDelay:null,
									solenoidDriveVoltagePercent:null,
									solenoidHoldVoltagePercent:null,
									curveOpenTime:null,
									curveCloseTime:null,
									doorLightOpenBlinkCycle:null,
									doorLightCloseBlinkCycle:null,
									faultBlinkCycle:null,
									obstructionRetryDelay:null,
									obstructionRetryCount:null,
									obstructionReturnOpenPercent:null,
									closeMaxClampTorque:null,
									obstructionSensitivity:null,
								});
								return this.$message.error(res.data.msg);
							}
						}
						if (res.data.code == 0 && res.data.data !== null) {
							if(!this.defaultStatus){
								this.$message({
									message: this.$t("prompt.success"),
									type: "success",
									duration: 500,
								});
							}
							this.buttonDisabled = false
							this.getData(res.data.data);
						}

					});
			},
			resetDCUNew: debounce(
				function(){
					this.buttonDisabled = true
					this.$confirm('此操作将重置DCU参数, 是否继续?', '提示', {
						confirmButtonText: '确定',
						cancelButtonText: '取消',
						type: 'warning'
					}).then(() => {
						this.$http.get("/psc/dcuparameters/ResetDefaultValue/" + this.returnDoorId()[0]).then((res) => {
							if (res.data.code !== 0) {
								this.buttonDisabled = false
								return this.$message.error(res.data.msg);
							}
							this.$message({
								message: this.$t("prompt.success"),
								type: "success",
								duration: 500,
								onClose: () => {
									//恢复读取值
									this.buttonDisabled = false
									//this.getDCUCS()
								},
							});
						});
					})
				},500, {
					leading: true,
					trailing: false,
				}
			),
			//写入DCU最新版
			whiteDCUNew: debounce(
				function() {
					this.buttonDisabled = true
					this.$confirm('此操作将写入DCU参数, 是否继续?', '提示', {
						confirmButtonText: '确定',
						cancelButtonText: '取消',
						type: 'warning'
					}).then(() => {

						var requiredName = ""
						var params = {};
						switch(this.activeName){
							case "first":
								requiredName = "/psc/dcuparameters/writeDcuBasicParams"
								params = this.baseForm
								break;
							case "third":
								requiredName = "/psc/dcuparameters/writeDcuOpenCurveLeftParams"
								params = this.baseForm3
								break;
							case "fourth":
								requiredName = "/psc/dcuparameters/writeDcuOpenCurveRightParams"
								params = this.baseForm4
								break;
							default:
								break;
						}
						if(requiredName == "" || JSON.stringify(params) == "{}"){
							this.buttonDisabled = false
							this.$message.error("参数异常");
							return false
						}
						params.dcuArr = this.returnDoorId()
						this.$http.post(requiredName, params).then((res) => {
							if (res.data.code !== 0) {
								this.buttonDisabled = false
								//恢复读取值
								//this.getDCUCS()
								return this.$message.error(res.data.msg);
							}
							this.$message({
								message: this.$t("prompt.success"),
								type: "success",
								duration: 500,
								onClose: () => {
									//恢复读取值
									this.buttonDisabled = false
									//this.getDCUCS()
								},
							});
						});
					}).catch(() => {
						this.buttonDisabled = false
						this.$message({
							type: 'info',
							message: '已取消写入DCU参数'
						});
						this.defaultStatus = true
						//恢复读取值
						//this.getDCUCS()
					});

				},
				500, {
					leading: true,
					trailing: false,
				},
			),
			//保存最新版
			saveNew() {
				if (this.dataForm.DCU.length !== 0) {
					this.saveVisible = true;
					this.$nextTick(() => {
						this.$refs["saveForm"].resetFields();
					});
				} else {
					return this.$message.error("请选择门控单元编号");
				}
			},
			//保存数据确定
			confirm() {
				this.$refs["saveForm"].validate((valid) => {
					if (!valid) {
						return false;
					}
					var obj = this.paramObj();
					obj = {
						name: this.saveForm.name,
						...obj,
					};
					this.$http.post("/psc/dcuparameters", obj).then((res) => {
						if (res.data.code !== 0) {
							this.defaultStatus = true
							//恢复读取值
							this.getDCUCS()
							return this.$message.error(res.msg);
						}
						this.$message({
							message: this.$t("prompt.success"),
							type: "success",
							duration: 500,
							onClose: () => {
								this.saveVisible = false;
								this.defaultStatus = true
								//恢复读取值
								this.getDCUCS()
							},
						});
						
					});
				});
			},
			//加载最新版
			LoadNew() {
				this.historyVisible = true;
				this.$nextTick(() => {
					this.$refs.historyForm.init();
				});
			},
			//获取历史保存的数据
			getHistory(id) {
				// console.log(id, '保存的id值')
				this.$http.get(`/psc/dcuparameters/${id}`).then((res) => {
					if (res.data.code == 0 && res.data.data !== null) {
						this.$nextTick(() => {
							//获取数据
							this.getData(res.data.data);
						});
					}
				});
			},
			//存储数据专用
			paramObj() {
				var arr = [];
				arr.push(this.returnDoorId()[0]);
				var obj = {
					dcuArr: arr,
					...this.baseForm,
				};
				// console.log(obj,'数值显示')
				return obj;
			},
			//返回相对应的门的ID
			returnDoorId() {
				var doorNum = [];
				this.dataForm.DCU.forEach((item) => {
					if (this.stationSide == 1) {
						let num1 = Number(item) - this.stepUp;
						doorNum.push(num1);
					} else if (this.stationSide == 0) {
						let num1 = Number(item) - this.stepDown + 128;
						doorNum.push(num1);
					}
				});
				// console.log(doorNum,'返回数据')
				return doorNum;
			},

			returnDoorId1(val) {
				// var dcu = this.velocityCurveOpen
				// if(val){
				// 	dcu = this.velocityCurveClose
				// }
				// console.log(this.stationSide, '返回数据111')
				if (this.stationSide == 1) {
					return Number(val) - this.stepUp;
				} else if (this.stationSide == 0) {
					return Number(val) - this.stepDown + 128;
				}
				// console.log(doorNum,'返回数据')
			},

			//获取保存的历史数据
			history() {
				this.addOrUpdateVisible = true;
				this.$nextTick(() => {
					this.$refs.addOrUpdate.init();
				});
			},

			//解析时间戳
			filterTime(time) {
				var date = new Date(time); //时间戳为10位需*1000，时间戳为13位的话不需乘1000
				var h = ''
				var m = ''
				var s = ''
				var Y = date.getFullYear() + "-";
				var M = (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1) + "-";
				var D = date.getDate() + " ";
				if (date.getHours() < 10) {
					h = '0' + date.getHours() + ":"
				} else {
					h = date.getHours() + ":"
				}
				if (date.getMinutes() < 10) {
					m = '0' + date.getMinutes() + ":"
				} else {
					m = date.getMinutes() + ":";
				}
				if (date.getSeconds() < 10) {
					s = '0' + date.getSeconds() + ":"
				} else {
					s = date.getSeconds() + ":";
				}
				var ms = date.getMilliseconds();
				return Y + M + D + h + m + s + ms;
			},
			//获取基础参数
			getData(val) {
				
				switch (this.activeName) {
					case "first":
						this.baseForm = val;
						break;
					case "second":
						this.baseForm2 = val;
						break;
					case "fifth":
						this.baseForm5 = val;
						break;
					case "third":
						this.baseForm3 = val;
						break;
					case "fourth":
						this.baseForm4 = val;
						break;
					default:
						break;
				}
			},
			// getDataFour(val) {
			// 	this.baseForm1.openNum = val.cumulativeOpenTimes;
			// 	this.baseForm1.runningHour = val.cumulativeRunningTimes;
			// 	this.baseForm1.encounterNum = val.cumulativeBlockTimes;
			// 	this.baseForm1.startNum = val.cumulativeStartTimes;
			// },
			refreshData(dataX, dataYD, dataY, val) {
				let that = this
				var myChart = ''
				if (val == 0) {
					myChart = that.openchart
					// myChart = this.$echarts.init(document.getElementById("baseEcharts"));

				} else {
					myChart = that.closechart
				}
				var option = myChart.getOption();
				option.xAxis[0].data = dataX;
				option.series[0].data = dataYD;
				option.series[1].data = dataY;
				myChart.setOption(option);
			},
			initEcharts() {
				let that = this
				that.openchart = this.$echarts.init(document.getElementById("baseEcharts"));
				const colorList = ["#F3D024FF", "#2062E6FF"];
				var option = {
					backgroundColor: "#fff",
					title: {
						show: false,
						text: '开门速度曲线及动能曲线实时参数',
						textStyle: {
							color: "rgba(46, 48, 51, 1)",
							fontFamily: 'sans-serif',
							fontSize: '16',
							fontWeight: 'normal',
						}
					},
					legend: {
						icon: "circle",
						top: "0%",
						right: "5%",
						itemWidth: 6,
						itemGap: 20,
						textStyle: {
							color: "#556677",
						},
					},
					tooltip: {
						trigger: "axis",
						axisPointer: {
							label: {
								show: true,
								backgroundColor: "#fff",
								color: "#556677",
								borderColor: "rgba(0,0,0,0)",
								shadowColor: "rgba(0,0,0,0)",
								shadowOffsetY: 0,
							},
							lineStyle: {
								width: 0,
							},
						},
						backgroundColor: "#fff",
						textStyle: {
							color: "#5c6c7c",
						},
						padding: [10, 10],
						extraCssText: "box-shadow: 1px 0 2px 0 rgba(163,163,163,0.5)",
					},
					grid: {
						top: "10%",
						left: "10%",
						right: "10%",
					},
					dataZoom: [{
							// 这个地方是控制下面的滑动条。
							show: true,
							realtime: true,
						},
						{
							type: "inside",
							realtime: true,
							start: 0,
							end: 100,
							xAxisIndex: [0, 1],
						},
					],
					xAxis: [{
						type: "category",
						data: this.dataX,
						axisLine: {
							lineStyle: {
								color: "#DCE2E8",
							},
						},
						axisTick: {
							show: false,
						},
						axisLabel: {
							textStyle: {
								color: "#556677",
							},
							showMinLabel: true,
							showMaxLabel: true,
							// 默认x轴字体大小
							fontSize: 12,
							// margin:文字到x轴的距离
							margin: 15,
						},
						axisPointer: {
							label: {
								// padding: [11, 5, 7],
								padding: [0, 0, 10, 0],
								margin: 15,
								fontSize: 12,
								backgroundColor: {
									type: "linear",
									x: 0,
									y: 0,
									x2: 0,
									y2: 1,
									colorStops: [{
											offset: 0,
											color: "#fff", // 0% 处的颜色
										},
										{
											offset: 0.86,
											color: "#fff", // 0% 处的颜色
										},
										{
											offset: 0.86,
											color: "#33c0cd", // 0% 处的颜色
										},
										{
											offset: 1,
											color: "#33c0cd", // 100% 处的颜色
										},
									],
									global: false, // 缺省为 false
								},
							},
						},
						boundaryGap: false,
					}, ],
					yAxis: [{
							type: "value",
							axisTick: {
								show: false,
							},
							axisLine: {
								show: true,
								lineStyle: {
									color: "#DCE2E8",
								},
							},
							axisLabel: {
								textStyle: {
									color: "#556677",
								},
							},
							splitLine: {
								show: false,
							},
						},
						{
							type: "value",
							position: "right",
							axisTick: {
								show: false,
							},
							axisLabel: {
								textStyle: {
									color: "#556677",
								},
								formatter: "{value}",
							},
							axisLine: {
								show: true,
								lineStyle: {
									color: "#DCE2E8",
								},
							},
							splitLine: {
								show: false,
							},
						},
					],
					series: [{
							name: "动能曲线(J)",
							type: "line",
							data: this.dataYD,
							symbolSize: 1,
							symbol: "circle",
							smooth: true,
							yAxisIndex: 0,
							showSymbol: false,
							lineStyle: {
								width: 5,
								color: colorList[0],
							},
							itemStyle: {
								normal: {
									color: colorList[0],
									borderColor: colorList[0],
								},
							},
						},
						{
							name: "速度曲线(m/s)",
							type: "line",
							data: this.dataY,
							symbolSize: 1,
							symbol: "circle",
							smooth: true,
							yAxisIndex: 1,
							showSymbol: false,
							lineStyle: {
								width: 5,
								color: colorList[1],
							},
							itemStyle: {
								normal: {
									color: colorList[1],
									borderColor: colorList[1],
								},
							},
						},
					],
				};
				that.openchart.setOption(option);
				if (that.openchart) {
					setTimeout(() => {
						that.openchart.resize();
					}, 200)
				}
				window.addEventListener("resize", () => {
					that.openchart.resize();
				});
			},
			initEchartsClose() {
				let that = this
				that.closechart = this.$echarts.init(document.getElementById("baseEchartsClose"));
				const colorList = ["#F3D024FF", "#2062E6FF"];
				var option = {
					backgroundColor: "#fff",
					title: {
						show: false,
						text: '关门速度曲线及动能曲线实时参数',
						textStyle: {
							color: "rgba(46, 48, 51, 1)",
							fontFamily: 'sans-serif',
							fontSize: '16',
							fontWeight: 'normal',
						}
					},
					legend: {
						icon: "circle",
						top: "0%",
						right: "5%",
						itemWidth: 6,
						itemGap: 20,
						textStyle: {
							color: "#556677",
						},
					},
					tooltip: {
						trigger: "axis",
						axisPointer: {
							label: {
								show: true,
								backgroundColor: "#fff",
								color: "#556677",
								borderColor: "rgba(0,0,0,0)",
								shadowColor: "rgba(0,0,0,0)",
								shadowOffsetY: 0,
							},
							lineStyle: {
								width: 0,
							},
						},
						backgroundColor: "#fff",
						textStyle: {
							color: "#5c6c7c",
						},
						padding: [10, 10],
						extraCssText: "box-shadow: 1px 0 2px 0 rgba(163,163,163,0.5)",
					},
					grid: {
						top: "10%",
						left: "8%",
						right: "10%",
					},
					dataZoom: [{
							// 这个地方是控制下面的滑动条。
							show: true,
							realtime: true,
						},
						{
							type: "inside",
							realtime: true,
							start: 0,
							end: 100,
							xAxisIndex: [0, 1],
						},
					],
					xAxis: [{
						type: "category",
						data: this.dataX1,
						axisLine: {
							lineStyle: {
								color: "#DCE2E8",
							},
						},
						axisTick: {
							show: false,
						},
						axisLabel: {
							textStyle: {
								color: "#556677",
							},
							showMinLabel: true,
							showMaxLabel: true,
							// 默认x轴字体大小
							fontSize: 12,
							// margin:文字到x轴的距离
							margin: 15,
						},
						axisPointer: {
							label: {
								// padding: [11, 5, 7],
								padding: [0, 0, 10, 0],
								margin: 15,
								fontSize: 12,
								backgroundColor: {
									type: "linear",
									x: 0,
									y: 0,
									x2: 0,
									y2: 1,
									colorStops: [{
											offset: 0,
											color: "#fff", // 0% 处的颜色
										},
										{
											offset: 0.86,
											color: "#fff", // 0% 处的颜色
										},
										{
											offset: 0.86,
											color: "#33c0cd", // 0% 处的颜色
										},
										{
											offset: 1,
											color: "#33c0cd", // 100% 处的颜色
										},
									],
									global: false, // 缺省为 false
								},
							},
						},
						boundaryGap: false,
					}, ],
					yAxis: [{
							type: "value",
							axisTick: {
								show: false,
							},
							axisLine: {
								show: true,
								lineStyle: {
									color: "#DCE2E8",
								},
							},
							axisLabel: {
								textStyle: {
									color: "#556677",
								},
							},
							splitLine: {
								show: false,
							},
						},
						{
							type: "value",
							position: "right",
							axisTick: {
								show: false,
							},
							axisLabel: {
								textStyle: {
									color: "#556677",
								},
								formatter: "{value}",
							},
							axisLine: {
								show: true,
								lineStyle: {
									color: "#DCE2E8",
								},
							},
							splitLine: {
								show: false,
							},
						},
					],
					series: [{
							name: "动能曲线(J)",
							type: "line",
							data: this.dataYD1,
							symbolSize: 1,
							symbol: "circle",
							smooth: true,
							yAxisIndex: 0,
							showSymbol: false,
							lineStyle: {
								width: 5,
								color: colorList[0],
							},
							itemStyle: {
								normal: {
									color: colorList[0],
									borderColor: colorList[0],
								},
							},
						},
						{
							name: "速度曲线(m/s)",
							type: "line",
							data: this.dataY1,
							symbolSize: 1,
							symbol: "circle",
							smooth: true,
							yAxisIndex: 1,
							showSymbol: false,
							lineStyle: {
								width: 5,
								color: colorList[1],
							},
							itemStyle: {
								normal: {
									color: colorList[1],
									borderColor: colorList[1],
								},
							},
						},
					],
				};
				that.closechart.setOption(option);
				if (that.closechart) {
					setTimeout(() => {
						that.closechart.resize();
					}, 200)
				}
				window.addEventListener("resize", () => {
					that.closechart.resize();
				});
			},
			echarts(data) {
				if (this.dataForm.DCU) {
					this.$router.push({
						name: "operEchart",
						query: {
							doorDcu: this.dataForm.DCU,
							type: data
						},
					});
				} else {
					return this.$message.error("请选择门控单元门编号");
				}

			},
			//开门曲线修改
			CurveChange(val) {
				if(val){
					this.getSpeedCurve64(this.velocityCurveClose,val)
				}else{
					this.getSpeedCurve64(this.velocityCurveOpen,val)
				}
			},
			getSpeedCurve64(val,openOrClose) {
				this.DCUoptions.forEach((item, index) => {
					if (Number(item.dcu) == Number(val)) {
						this.stationSide = item.stationSide
					}
				});
				if (this.dataForm.DCU) {
					this.$http.get(`/psc/dcu/speedCurve64?dcuId=` + this.returnDoorId1(val) + '&openClose=' + openOrClose).then((
						res) => {
							
						if (res.data.code == 0 && res.data.data !== null) {
							var speedList = res.data.data
							if (openOrClose == 0) {
								this.dataY = []
								this.dataYD = []
								this.dataX = []
								speedList.forEach(obj => {
									this.dataY.push(obj.speed.toFixed(4))
									this.dataYD.push(obj.ek.toFixed(4))
									this.dataX.push(obj.time)
								});
								this.refreshData(this.dataX, this.dataYD, this.dataY, 0);
							} else if (openOrClose == 1) {
								this.dataY1 = []
								this.dataYD1 = []
								this.dataX1 = []
								speedList.forEach(obj => {
									this.dataY1.push(obj.speed.toFixed(4))
									this.dataYD1.push(obj.ek.toFixed(4))
									this.dataX1.push(obj.time)
								});
								this.refreshData(this.dataX1, this.dataYD1, this.dataY1, 1);
							}

						}
					});
				} else {
					this.velocityCurveOpen = ""
					this.velocityCurveClose = ""
					return this.$message.error("请选择门控单元门编号");
				}

			},
			CurveTimeChange(val) {
				if (val == 0) {
					var obj = this.CurveTimeList[this.velocityCurveTime].obj
					var CurrentTime = this.CurveTimeList[this.velocityCurveTime].currentTime
					this.getCureSpeed(obj, CurrentTime)
					this.refreshData(this.dataX, this.dataYD, this.dataY, 0);
				} else {
					var obj = this.CurveTimeListClose[this.velocityCurveTime1].obj
					var CurrentTime = this.CurveTimeListClose[this.velocityCurveTime1].currentTime
					this.getCureSpeedClose(obj, CurrentTime)
					this.refreshData(this.dataX1, this.dataYD1, this.dataY1, 1);
				}
			},
			getCureSpeed(obj, CurrentTime) {
				//开门的64条曲线
				this.dataY = [
					0,
					obj.v1.toFixed(4),
					obj.v2.toFixed(4),
					obj.v3.toFixed(4),
					obj.v4.toFixed(4),
					obj.v5.toFixed(4),
					obj.v6.toFixed(4),
					obj.v7.toFixed(4),
					obj.v8.toFixed(4),
					obj.v9.toFixed(4),
					0
				];
				this.dataYD = [
					0,
					obj.ek1.toFixed(4),
					obj.ek2.toFixed(4),
					obj.ek3.toFixed(4),
					obj.ek4.toFixed(4),
					obj.ek5.toFixed(4),
					obj.ek6.toFixed(4),
					obj.ek7.toFixed(4),
					obj.ek8.toFixed(4),
					obj.ek9.toFixed(4),
					0
				];
				// 解析曲线的横坐标
				var x = CurrentTime;
				for (var i = 0; i < 11; i++) {
					if (i == 0) {
						this.dataX[i] = this.filterTime(x)
					} else if (i == 10) {
						//获取第一点数据
						var t0 = obj.t9 - obj.t8
						var t8 = obj.t9 + t0
						this.dataX[i] = this.getnewSeconds(x, t8)
					} else {
						this.dataX[i] = this.getnewSeconds(x, obj["t" + `${i}`])
					}
				}
			},
			getCureSpeedClose(obj, CurrentTime) {
				this.dataY1 = [
					0,
					obj.v1.toFixed(4),
					obj.v2.toFixed(4),
					obj.v3.toFixed(4),
					obj.v4.toFixed(4),
					obj.v5.toFixed(4),
					obj.v6.toFixed(4),
					obj.v7.toFixed(4),
					obj.v8.toFixed(4),
					obj.v9.toFixed(4),
					0
				];
				this.dataYD1 = [
					0,
					obj.ek1.toFixed(4),
					obj.ek2.toFixed(4),
					obj.ek3.toFixed(4),
					obj.ek4.toFixed(4),
					obj.ek5.toFixed(4),
					obj.ek6.toFixed(4),
					obj.ek7.toFixed(4),
					obj.ek8.toFixed(4),
					obj.ek9.toFixed(4),
					0
				];
				// 解析曲线的横坐标
				var x = CurrentTime;
				for (var i = 0; i < 11; i++) {
					if (i == 0) {
						this.dataX1[i] = this.filterTime(x)
					} else if (i == 10) {
						//获取第一点数据
						var t0 = obj.t9 - obj.t8
						var t8 = obj.t9 + t0
						this.dataX1[i] = this.getnewSeconds(x, t8)
					} else {
						this.dataX1[i] = this.getnewSeconds(x, obj["t" + `${i}`])
					}
				}
			},
		},
	};
</script>

<style scoped>
	.bg {
		background-color: #fff;
		border-radius: 10px;
		display: flex;
		align-items: center;
		/* height: 7.6vh; */
		/* min-height: 76px; */
		/* line-height: 7.6vh; */
		padding: 0.8vw 1.8vw;
	}

	.bg>>>.el-form--inline .el-form-item__content,
	.el-form--inline .el-form-item {
		vertical-align: middle !important;
	}

	.bg>>>.el-form-item {
		margin-bottom: 0;
	}

	.bg1 {
		background-color: #fff;
		border-radius: 10px;
		display: flex;
		align-items: center;
		/* height: 121.7vh; */
		/* height: 79vh; */
		/* min-height: 724px; */
		padding: 1.6vh 1.5vw;
		margin-top: 10px;
	}

	.homeTuTxt {
		width: 16px;
		font-size: 18px;
		font-weight: 400;
		word-wrap: break-word;
		word-break: normal;
		line-height: 40px;
		color: rgba(0, 65, 135, 1);
	}

	.bg1 .el-col {
		height: 100%;
	}

	.baseHeader {
		margin: 0;
		font-size: 18px;
		font-weight: 500;
		color: rgba(46, 48, 51, 1);
	}

	.baseInfo {
		display: flex;
		width: 100%;
		/* height: 78.1vh; */
		/* height: 50vh; */
		/* min-height: 484px; */
		padding: 10px 0;
		background: rgba(0, 123, 255, 0.1);
		border-radius: 10px;
		align-items: center;
		margin-top: 1.3vh;
	}


	.baseInfoContent {
		width: 100%;
		height: 100%;
		margin: 0 auto;
		/* padding-left: 1.9vw; */
	}

	.baseInfoContent>>>.el-row {
		display: flex;
		/* justify-content: space-between; */
	}

	.baseInfoContent>>>.el-input__inner {
		height: 100%;
		text-align: center;
		padding: 0;
	}

	.baseInfoContent>>>.el-form--inline .el-form-item__content,
	.el-form--inline .el-form-item {
		vertical-align: middle !important;
	}

	.baseInfoContent>>>.el-form-item {
		margin-bottom: 0;
	}

	.baseInfoContent>>>.el-form {
		/* height: 100%; */
		display: flex;
		flex-direction: column;
		justify-content: space-evenly;
	}

	.baseInfo1 {
		display: flex;
		justify-content: flex-start;
		align-items: center;
	}
	.baseInfo1_first_1,.baseInfo1_first_2{
		width: 40%;
	}
	.baseInfo1_first_3{
		width: 20%;
	}
	.baseInfo1_second{
		width: 50%;
	}
	.baseInfo1_third,.baseInfo1_fourth{
		width: 33%;
	}
	.baseInfo1 .baseInfo1_label{
		font-size: 14px;
		color: rgba(46, 48, 51, 1);
		font-weight: 400;
		width: 180px;
		text-align: right;
		margin-right: 1vh;
	}
	.baseInfo1>>>.el-form-item__label {
		/* width: 11vw; */
		width: 180px;
		font-size: 12px;
		font-weight: 400;
		color: rgba(46, 48, 51, 1);
	}

	.baseInfo2 {
		padding-left: 8vw;
	}

	.baseInfo2 div {
		width: 7.8vw;
		display: flex;
		justify-content: center;
	}

	.baseInfoBtn>>>.el-button--primary:focus,
	.baseInfoBtn>>>.el-button--primary:hover {
		border-radius: 10px;

		background: rgba(25, 77, 138, 1) !important;
	}

	.baseInfoBtn>>>.el-button--primary {
		padding: 10px !important;
		border-radius: 10px;
		background: rgba(25, 77, 138, 1) !important;
		font-size: 16px;
		font-weight: 400;
		color: rgba(255, 255, 255, 1);
	}

	.baseInfoBtnAll {
		/* width: 95%; */
		width: 100%;
		justify-content: flex-end;
	}

	.danwei {
		font-size: 14px;
		font-weight: 400;
		color: rgba(46, 48, 51, 1);
		display: flex;
		align-items: center;
	}

	.baseInfoBtnRight {
		/* position: absolute;
		right: 1.8vw;
		top: 2vh;
		height: 96%;
		width: 7.8vw; */
	}

	.baseInfoBtnRight .baseInfoBtn {
		/* display: flex;
		flex-direction: column;
		height: 100%;
		justify-content: space-evenly; */
	}

	.baseInfoBtnRight>>>.baseInfoBtn1,
	.PEDCBtn>>>.baseInfoBtn1 {
		background: rgba(42, 130, 228, 1) !important;
		border-color: rgba(42, 130, 228, 1) !important;
	}

	.baseInfoBtnRight>>>.baseInfoBtn1:focus,
	.baseInfoBtnRight>>>.baseInfoBtn1:hover,
	.PEDCBtn>>>.baseInfoBtn1:focus,
	.PEDCBtn>>>.baseInfoBtn1:hover {
		background: rgba(42, 130, 228, 0.8) !important;
		border-color: rgba(42, 130, 228, 1) !important;
	}

	.baseInfoBtnRight>>>.baseInfoBtn2,
	.PEDCBtn>>>.baseInfoBtn2 {
		background: rgba(255, 87, 51, 1) !important;
		border-color: rgba(255, 87, 51, 1) !important;
	}

	.baseInfoBtnRight>>>.baseInfoBtn2:focus,
	.baseInfoBtnRight>>>.baseInfoBtn2:hover,
	.PEDCBtn>>>.baseInfoBtn2:focus,
	.PEDCBtn>>>.baseInfoBtn2:hover {
		background: rgba(255, 87, 51, 1) !important;
		border-color: rgba(255, 87, 51, 1) !important;
	}

	.baseInfoBtnRight>>>.baseInfoBtn3 {
		background: rgba(67, 207, 124, 1) !important;
		border-color: rgba(67, 207, 124, 1) !important;
	}

	.baseInfoBtnRight>>>.baseInfoBtn3:focus,
	.baseInfoBtnRight>>>.baseInfoBtn3:hover {
		background: rgba(67, 207, 124, 0.8) !important;
		border-color: rgba(67, 207, 124, 1) !important;
	}

	.baseInfoBtnRight>>>.baseInfoBtn4 {
		background: rgba(56, 56, 56, 1) !important;
		border-color: rgba(56, 56, 56, 1) !important;
	}

	.baseInfoBtnRight>>>.baseInfoBtn4:focus,
	.baseInfoBtnRight>>>.baseInfoBtn4:hover {
		background: rgba(56, 56, 56, 1) !important;
		border-color: rgba(56, 56, 56, 1) !important;
	}

	.baseInfoBtnRight>>>.baseInfoBtn5 {
		background: rgba(255, 141, 26, 1) !important;
		border-color: rgba(255, 141, 26, 1) !important;
	}

	.baseInfoBtnRight>>>.baseInfoBtn5:focus,
	.baseInfoBtnRight>>>.baseInfoBtn5:hover {
		background: rgba(255, 141, 26, 0.8) !important;
		border-color: rgba(255, 141, 26, 1) !important;
	}

	.baseInfoBtnRight>>>.el-button {
		/* padding: 10px !important; */
	}

	.bg2 {
		background-color: #fff;
		border-radius: 10px;
		padding: 2.1vh 1.5vw;
		margin-top: 10px;
		height: 40.1vh;
		min-height: 295px;
	}

	.bg3 {
		height: 24.5vh;
	}

	.bg3>>>.el-row {
		height: 100%;
	}

	.PEDCInfo {
		padding: 2vh 2.1vw 0;
		height: calc(100% - 23px);
		display: flex;
		align-items: center;
	}

	.PEDCBtn {
		display: flex;
	}

	.baseInfoEcharts {
		width: 100%;
		height: 100%;
	}

	.baseInfo1 .company {
		font-size: 12px;
		display: block;
	}
	.baseInfo1 .unit{
		width: 40px;
		margin-left: 10px;
		margin-right: 10px;
	}
	.leftColor>>>.el-input__inner {
		color: #fff !important;
	}

	.operIndexDiv>>>.el-form-item__label {
		text-align: left;
	}

	.cure {
		width: 49.5%;
		margin-right: 1%;
		height: 40.1vh;
		margin-top: 10px;
		padding: 2.1vh 1.5vw;
		border-radius: 10px;
		background-color: #fff;
	}

	.cure1 {
		margin-right: 0;
	}

	.chartbase {
		display: contents;
	}

	.chartbase>>>.el-select:first-child {
		width: 150px;
	}

	.baseInfo1>>>.el-input-number__decrease,
	.baseInfo1>>>.el-input-number__increase {
		height: 94%;
		margin-top: 1%;
		display: none;
	}

	.baseInfo1>>>.el-input-number .el-input {
		height: 100%;
	}

	.input-width {
		width: 8vw;
		height: 3vh;
		min-height: 30px;
		/* min-width: 100px; */
	}

	@media screen and (max-width:1500px) {
		.chartbase {
			display: block;
			width: 100%;
			margin-top: 10px;
		}
	}
</style>
